home *** CD-ROM | disk | FTP | other *** search
/ Champak 132 (Alt) / Vol 132.iso / games / hewitt.swf / scripts / DefineButton2_1881 / BUTTONCONDACTION on(press).as
Encoding:
Text File  |  2011-06-09  |  1.3 KB  |  47 lines

  1. on(press){
  2.    _root.txt_number = 1;
  3.    if(_root.inven._currentframe == 1)
  4.    {
  5.       if(_root.micon._currentframe == 1 && _root.range == true)
  6.       {
  7.          if(_root.even10 == 0)
  8.          {
  9.             _root.next_dis1 = 2;
  10.             _root.next_txt1 = "It has no power.";
  11.          }
  12.          else
  13.          {
  14.             _root.inven.gotoAndStop(6);
  15.          }
  16.       }
  17.       if(_root.micon._currentframe == 2)
  18.       {
  19.          _root.next_dis1 = 2;
  20.          _root.next_txt1 = "It\'s the Principal\'s laptop.";
  21.       }
  22.       if(_root.micon._currentframe == 47 && _root.range == true)
  23.       {
  24.          _root.sfx.gotoAndStop(3);
  25.          _root.micon.gotoAndStop(1);
  26.          _root.even10 = 1;
  27.          _root.next_dis1 = 2;
  28.          _root.next_txt1 = "Now it should work.";
  29.       }
  30.       if(_root.micon._currentframe == 6 && _root.range == true)
  31.       {
  32.          if(_root.even10 == 0)
  33.          {
  34.             _root.next_dis1 = 2;
  35.             _root.next_txt1 = "It has no power.";
  36.          }
  37.          else if(_root.talk11 == 1)
  38.          {
  39.             _root.sfx.gotoAndStop(3);
  40.             _root.micon.gotoAndStop(51);
  41.             _root.next_dis1 = 2;
  42.             _root.next_txt1 = "Ok now I have the file saved, I should get it back to Kathy.";
  43.          }
  44.       }
  45.    }
  46. }
  47.